package com.edu.test;

import com.edu.service.UserService;
import com.edu.service.impl.UserServiceImpl;
import com.edu.service.impl.UserServiceProxy;

/**
 * @Author:mx
 * @Date:2025/11/10-15:20:01
 */
public class MyTest01 {

    public static void main(String[] args) {
        UserService userService = new UserServiceImpl();//被代理对象

        UserService usProxy = new UserServiceProxy(userService);

        usProxy.addUser();

        usProxy.deleteUser();
    }
}
